/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bishe.entity;

import com.thinkgem.jeesite.modules.bishe.entity.BisheClient;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 订单管理Entity
 * @author yue
 * @version 2018-12-26
 */
public class BisheOrder extends DataEntity<BisheOrder> {
	
	private static final long serialVersionUID = 1L;
	private BisheClient client;		// 客户
	private String orderContent;		// 订单内容
	private String orderType;		// 订单类型
	private Date orerDate;		// 订单时间

	public BisheOrder() {
		super();
	}

	public BisheOrder(String id){
		super(id);
	}

	public BisheClient getClient() {
		return client;
	}

	public void setClient(BisheClient client) {
		this.client = client;
	}
	
	public String getOrderContent() {
		return orderContent;
	}

	public void setOrderContent(String orderContent) {
		this.orderContent = orderContent;
	}
	
	@Length(min=1, max=64, message="订单类型长度必须介于 1 和 64 之间")
	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getOrerDate() {
		return orerDate;
	}

	public void setOrerDate(Date orerDate) {
		this.orerDate = orerDate;
	}
}